<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #out{
            margin:10px ;                                                                
        }
        #inter{
            padding-left: 10px; 
            padding-right: 20px;
            padding-top: 30px;
            padding-bottom: 40px;
        }
    </style>

</head>



<body>
    <div id="out">我是外边距 </div>
    <div id="inter">我是内边距</div>
    <div>————————————————</div>
</body>
</html>
